/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ticketmaster.businesslogic;

import ticketmaster.dao.BankcardDAO;
import ticketmaster.dao.DAOFactory;
import ticketmaster.dataobject.Bankcard;

/**
 *
 * @author Wei Liu
 */
public class BankcardController
{
    public boolean UpdateBankcard(Bankcard card)
    {
        BankcardDAO bankcardDAO = DAOFactory.getInstance().getBankcardDAO();
        return bankcardDAO.updateBankcard(card);
    }

    public Bankcard getCreditCard(Bankcard card)
    {
        BankcardDAO bankcardDAO = DAOFactory.getInstance().getBankcardDAO();
        return bankcardDAO.findBankcard(card);
    }
}
